﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DayAtTheRaces
{
    public partial class Form1 : Form
    {



        public Form1()
        {
            InitializeComponent();   
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            Guy[] guys = new Guy[3];
            guys[0] = new Guy() { Name = "Joe", Cash = 50, MyRadioButton = joeRadioButton, MyLabel = joeBetLabel };
            guys[1] = new Guy() { Name = "Bob", Cash = 75, MyRadioButton = bobRadioButton, MyLabel = bobBetLabel };
            guys[2] = new Guy() { Name = "Al", Cash = 45, MyRadioButton = alRadioButton, MyLabel = alBetLabel };

            foreach (Guy guy in guys)
            {
                guy.UpdateLabels();
            }

            Greyhound[] greyhounds = new Greyhound[4];
            greyhounds[0] = new Greyhound() { MyPictureBox = dogPicture1, RacetrackLength = 600, StartingPosition = 0 };
            greyhounds[1] = new Greyhound() { MyPictureBox = dogPicture2, RacetrackLength = 600, StartingPosition = 0 };
            greyhounds[2] = new Greyhound() { MyPictureBox = dogPicture3, RacetrackLength = 600, StartingPosition = 0 };
            greyhounds[3] = new Greyhound() { MyPictureBox = dogPicture4, RacetrackLength = 600, StartingPosition = 0 };

        }

        private void timer1_Tick(object sender, EventArgs e)
        {
        }

        private void joeRadioButton_CheckedChanged(object sender, EventArgs e)
        {
            nameLabel.Text = "Joe";
        }
    }
}
